const indexLayout = resolve => require(['./index.vue'], resolve)
const index = resolve => require(['./views/index.vue'], resolve)
const importView = resolve => require(['./views/import.vue'], resolve)


const routers = [
    {
        path: '/',
        name: '',
        redirect:'/index'
    },

    {
        path: '/index',
        component: indexLayout,
        redirect: '/index/index',
        name: '概览',
        meta: {
            title: '概览'
        },
        children: [
            {
                path: 'index',
                name: '整体概览',
                component: index,
                meta: {
                    title: '整体概览'
                }
            }
        ]
    },

    {
        path: '/import',
        component: indexLayout,
        redirect: '/import/excel',
        name: '导入',
        meta: {
            title: '导入'
        },
        children: [
            {
                path: 'import',
                name: '导入EXCEL',
                component: importView,
                meta: {
                    title: '导入EXCEL'
                }
            }
        ]
    }

]



export default routers